package com.yx.china.project.service.impl;

import com.yx.china.project.dao.PayDao;
import com.yx.china.project.entities.Payment;
import com.yx.china.project.service.PayService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class PayServiceImpl implements PayService {
    @Resource
    private PayDao payDao;
    @Override
    public int createPay(Payment pay) {
        return payDao.createPay(pay);
    }

    @Override
    public Payment getPaymentById(Long id) {
        return payDao.getPaymentById(id);
    }
}
